<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
	<title>网关管理</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="../../css/public.css" media="all" />
	<link rel="stylesheet" href="../../css/leftnav.css" media="all" />
</head>
<body class="childrenBody">

<div class="layui-col-md2" style="width:200px"><!--学校导航-->
	<div style="background-color:#eeeeee;line-height: 40px;text-align: center; height: 40px;font-size: small;">学校导航</div>
	<!--学校教学楼导航栏开始-->
	<div style='border:0px;padding:3px; PADDING:0px; width:200px; height:685px; LINE-HEIGHT: 20px; overflow-y: auto; overflow-x: hidden;'>
		<div class="nav">
			<ul id="aat" class="ce" ></ul>
		</div>
	</div>
	<!--学校教学楼导航栏结束-->
</div>
<div class="layui-col-md7">
	<!--查询和工具栏开始-->
	<form class="layui-form " action="" method="post" id="searchFrm" lay-filter="searchFrm">
		<div class="layui-inline">
			<select name="onlineStatus" id="onlineStatus" >
				<option value='' selected disabled style="display: none;">选择在线状态</option>
				<option value="1">在线</option>
				<option value="0">离线</option>
			</select>
		</div>
		<div class="layui-inline">
			<input type="text" class="layui-input searchVal" placeholder="请输入网关ID或Mac" />
		</div>
		<button type="button" class="layui-btn search_btn" id="search_btn" lay-filter="search_btn"><span class="layui-icon layui-icon-search"></span>搜索</button>
		<div class="layui-inline" >
			<button type="button" class="layui-btn layui-btn-normal add_btn" id="add_btn" lay-filter="add_btn"><i class="layui-icon">&#xe608;</i>添加</button>
		</div>
	</form>
	<!--查询和工具栏结束-->
	<br><!--yw 分隔-->
	<table id="list" lay-filter="list"></table><!--yw 显示列表数据-->
	<!--行工具条-->
	<div id="listRowBar" style="display:none;">
		<a><i class="layui-icon" lay-event="edit">&#xe642;</i></a>
		<a><i class="layui-icon" lay-event="del">&#xe640;</i></a>
		<a><i class="layui-icon" lay-event="detail">&#xe60b;</i></a>
	</div>
</div>
<!--数据表格结束-->

<!-- 新增弹出层开始-->
<div style="display:none;padding:10px;" id="addDiv">
	<form action="" method="post" class="layui-form" id="dataFrm" lay-filter="dataFrm">
		<div class="layui-form-item">
			<label class="layui-form-label">学校</label>
			<div class="layui-input-block">
				<select name="schoolId" lay-filter="schoolId" id="schoolId">
					<option value=""></option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">教学楼</label>
			<div class="layui-input-block">
				<select name="tbuildName" lay-filter="tbuildName" id="tbuildName">
					<option value=""></option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><span style="color:red;">*</span>网关ID</label>
			<div class="layui-input-block">
				<input type="text" name="gatewayid" autocomplete="off" class="layui-input" id="gatewayid" lay-verify="required|lenLimit10">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><span style="color:red;">*</span>网关Mac</label>
			<div class="layui-input-block">
				<input placeholder="2C:4D:54:66:42:B8" type="text" name="gatewaymac" autocomplete="off" class="layui-input" id="gatewaymac" lay-verify="required|macAddress">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">教室</label>
			<div class="layui-input-block">
				<select name="classroom" id="classroom">
					<option value=""></option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><span style="color:red;">*</span>设备数量</label>
			<div class="layui-input-block">
				<input type="text" name="eqnumber"  id = "eqnumber" lay-verify="required" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">在线状态</label>
			<div  class="layui-input-block">
				<select name="onlinestatus"  id="onlinestatus">
					<option value="1">在线</option>
					<option value="0">离线</option>
				</select>
			</div>
		</div>

		<div class="layui-form-item">
			<div  style="text-align: center;">
				<button type="button" class="layui-btn" lay-submit id="doSubmitAdd" lay-filter="doSubmitAdd"><i class="layui-icon">&#xe654;</i>新增</button>
				<button type="reset" class="layui-btn layui-btn-warm" ><i class="layui-icon">&#xe669;</i>重置</button>
			</div>
		</div>
	</form>
</div>
<!-- 新增弹出层结束-->
<!-- 修改弹出层开始-->
<div style="display:none;padding:10px;" id="saveDiv">
	<form action="" method="post" class="layui-form" id="dataFrm2" lay-filter="dataFrm2">
		<div class="layui-form-item">
			<label class="layui-form-label">学校</label>
			<div class="layui-input-block">
				<select name="schoolId2" lay-filter="schoolId2" id="schoolId2"></select>
				<option value=""></option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">教学楼</label>
			<div class="layui-input-block">
				<select name="tbuildName2"  lay-filter="tbuildName2" id="tbuildName2">
					<option value=""></option>
				</select>
			</div>
		</div>
		<input type="hidden" id="gatewayid2" name="gatewayid2"><!--yw根据网关ID修改记录，不显示使用hidden-->
		<div class="layui-form-item">
			<label class="layui-form-label"><span style="color:red;">*</span>网关Mac</label>
			<div class="layui-input-block">
				<input type="text" name="gatewaymac2" autocomplete="off" class="layui-input" id="gatewaymac2" disabled lay-verify="required|macAddress">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">教室</label>
			<div class="layui-input-block">
				<select name="classroom2" id="classroom2">
					<option value=""></option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><span style="color:red;">*</span>设备数量</label>
			<div class="layui-input-block">
				<input type="text" name="eqnumber2"  id = "eqnumber2" lay-verify="required" disabled class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">在线状态</label>
			<div  class="layui-input-block" >
				<select name="onlinestatus2" id="onlinestatus2" >
					<option value="1">在线</option>
					<option value="0">离线</option>
				</select>
			</div>
		</div>
		<div class="layui-form-item">
			<div  style="text-align: center;">
				<button type="button" class="layui-btn" lay-submit id="doSubmitSave" lay-filter="doSubmitSave"><i class="layui-icon">&#xe605;</i>保存</button>
				<button type="reset" class="layui-btn layui-btn-warm" ><i class="layui-icon">&#xe669;</i>重置</button>
			</div>
		</div>

	</form>
</div>
<!--修改弹出层结束-->
<!--详情弹出层开始-->
<div style="display:none;padding:10px;" id="detailDiv" >
	<form action="" method="post" class="layui-form" id="dataFrm3" lay-filter="dataFrm3">
		<div style="margin-left: 20px">
			<table id="gatewayList2" lay-filter="gatewayList2">
			</table><!--yw 显示列表数据-->
		</div>
		<div>
			<ul class="layer-photos-demo" id="Images"></ul>
		</div>
	</form>
</div>
<!--详情弹出层结束-->

<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="../../js/leftnav.js"></script> <!--左侧导航栏-->
<script type="text/javascript" src="gatewayMag.js"></script>

</body>
</html>
